<style>
    img.fans-portrait {
        width: 50px;
        height: 50px;
    }

    .fsh-rightPanel .layui-table-body .layui-table-cell {
        height: 50px;
        line-height: 50px;
    }

    .fsh-rightPanel {
        background: black;
    }

</style>
<div class="fsh-rightPanel">

</div>


<script>
    //获取数据
    var pageSize = 20;
    layui.use(['layer', 'form'], function () {
        var layer = layui.layer;
        var form = layui.form;
        //新增课件
        $('#generateLiveParam').click(function () {
            generateLiveParam();
        });

    });


    function generateLiveParam() {
        $.ajax({
            url: context + '/api/live/getPushParam?course_id=9',
            success: function (result) {
                if (result.success) {
                    $('#rtmp-url').val(result.data.server);
                    $('#rtmp-key').val(result.data.key);
                } else {
                    layer.msg(result.msg);
                }
            }
        });

    }


</script>

